package com.link.base.base.performance.dao.mybatis.mapper;

import com.link.base.base.performance.model.ProjectBonus;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 项目奖金
 *
 * @author 王昊
 * @date 2021-04-08 13:17:18
 */
public interface ProjectBonusMapper extends BasicMapper<ProjectBonus> {

    /**
     * 年度奖金明细表 拉平数据
     * @param entity
     * @return
     */
    List<ProjectBonus> annualBonusReportPage(ProjectBonus entity);

    /**
     * 汇总行的所有奖金合计
     * @param entity
     * @return
     * @throws Exception
     */
    public ProjectBonus selectSumByBonusId(ProjectBonus entity) throws Exception;
}
